﻿import request from '/@/utils/request';
enum Api {
  AddSysCity = '/api/sysCity/add',
  DeleteSysCity = '/api/sysCity/delete',
  UpdateSysCity = '/api/sysCity/update',
  PageSysCity = '/api/sysCity/page',
  GetSysRegionList = '/api/sysRegion/List',
  GetProvinceList = '/api/sysRegion/GetProvinceList',
  GetCityList = '/api/sysRegion/GetCityList',
  GetAreaList = '/api/sysRegion/GetAreaList',
}

// 增加系统行政区划
export const addSysCity = (params?: any) =>
	request({
		url: Api.AddSysCity,
		method: 'post',
		data: params,
	});

// 删除系统行政区划
export const deleteSysCity = (params?: any) => 
	request({
			url: Api.DeleteSysCity,
			method: 'post',
			data: params,
		});

// 编辑系统行政区划
export const updateSysCity = (params?: any) => 
	request({
			url: Api.UpdateSysCity,
			method: 'post',
			data: params,
		});

// 分页查询系统行政区划
export const pageSysCity = (params?: any) => 
	request({
			url: Api.PageSysCity,
			method: 'post',
			data: params,
		});
		
// 查询系统省行政区划
export const getSysRegionList = (params?: any) => 
	request({
			url: Api.GetSysRegionList,
			method: 'get',
			data: params,
		});		
// 查询系统省
export const getProvinceList = (params?: any) => 
	request({
			url: Api.GetProvinceList,
			method: 'get',
			data: params,
		});	
// 查询系统省
export const getCityList = (params?: any) => 
	request({
			url: Api.GetCityList,
			method: 'get',
			data:params,
		});				
// 查询系统省
export const getAreaList = (params?: any) => 
	request({
			url: Api.GetAreaList,
			method: 'get',
			data: params,
		});	